package com.xyy.saas.payment.cores.enums;

/**
 * @Date: 2019/12/19 14:01
 */
public enum BusinessIdTypeEnum {
    /**
     * 一块钱医生业务类型
     */
    YIKUAIQIAN_DOC("yikuaiqian_doc"),
    /**
     * 一块钱医生国控业务类型
     */
    YIKUAIQIAN_DOC_GK("yikuaiqian_doc_gk"),
    /**
     * 一块钱富民
     */
    YIKUAIQIAN_FM("yikuaiqian_fm"),
    /**
     * 一块钱药店业务类型
     */
    YIKUAIQIAN_DRUGSTORE("yikuaiqian_drugstore"),
    /**
     * ec的ka
     */
    EC_KA("ec_ka"),
    /**
     * ec的order
     */
    EC_ORDER("ec_order"),
    /**
     * 毛竹
     */
    SAAS_CRM("saas_crm"),
    /**
     * 单品交易
     */
    SAAS_TRADE("saas_trade"),
    /**
     * 宜块钱资质认证业务
     */
    YIKUAIQIAN_ATTESTATION("yikuaiqian_attestation"),
    /**
     * 宜块钱保险业务
     */
    YIKUAIQIAN_INSURANCE("yikuaiqian_insurance"),
    /**
     * 宜块钱保险业务
     */
    YIKUAIQIAN_LINGZHI("yikuaiqian_lingzhi"),
    /**
     * 智慧脸商城
     */
    SAAS_MALL("saas_mall"),
    /**
     * 药帮忙自营
     */
    EC_SELF_SUPPORT("ec_self_support"),
    /**
     * 药帮忙POP
     */
    EC_POP("ec_pop"),
    /**
     * INS_ORD
     */
    INS_ORD("ins_ord"),
    /**
     * HEYE_HMY
     */
    HEYE_HMY("heye_hmy"),
    /**
     * SAAS_XYK
     */
    SAAS_XYK("saas_xyk"),
    /**
     * ec_college_virtual
     */
    EC_COLLEGE_VIRTUAL("ec_college_virtual"),
    /**
     * EC兼容买家业务
     */
    EC("ec");

    public static BusinessIdTypeEnum type(String type) {
        for(BusinessIdTypeEnum item : values()) {
            if(item.getType().equals(type)) {
                return item;
            }
        }

        return null;
    }

    private String type;

    BusinessIdTypeEnum(String type){
        this.type = type;
    }

    public String getType() {
        return type;
    }
}
